﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ChangeCustomerStatus.aspx.vb" Inherits="ccapps.ChangeCustomerStatus" %>



<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>


    <style type="text/css">
	.prompt { BACKGROUND-COLOR: #a2547f; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 20px; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none }



        .button02 {
			border-style: none;
              border-color: inherit;
              border-width: 1px;
              font-family: Verdana, Arial; 
		      font-size : 10px; 
		      font-weight : bold;
		      color: #336699;
		      padding : 3px;
		     float:right;
		      text-align:center;
		      text-decoration: none;
            height: 22px;
        }
               .bir 
{
	font-family: Arial, Helvetica;
	color: #000000;
	font-size: 12px;
	text-decoration: none;
	width: 225px;
	border-top: 1px solid #dfdfdf;
	padding-left: 10px;
	background-color: #e6e6fa;	
} 
.iki 
{
	        BACKGROUND-COLOR: #f5f5f5;
            FONT-FAMILY: Arial, Helvetica;
            COLOR: #000000;
            FONT-SIZE: 12px;
            TEXT-DECORATION: none; 
			width:225px;
            border-collapse:collapse
}
	  .auto-style1 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 226px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
              height: 17px;
          }
          .auto-style2 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 675px;
              border-collapse: collapse;
              height: 17px;
          }
          .auto-style3 {
              font-family: Arial, Helvetica;
              color: #000000;
              font-size: 12px;
              text-decoration: none;
              width: 226px;
              border-top: 1px solid #dfdfdf;
              padding-left: 10px;
              background-color: #e6e6fa;
              height: 20px;
          }
          .auto-style4 {
              BACKGROUND-COLOR: #f5f5f5;
              FONT-FAMILY: Arial, Helvetica;
              COLOR: #000000;
              FONT-SIZE: 12px;
              TEXT-DECORATION: none;
              width: 225px;
              border-collapse: collapse;
              height: 20px;
          }
		
		  .auto-style5 {
            font-family: Arial, Helvetica;
            color: #000000;
            font-size: 12px;
            text-decoration: none;
            width: 226px;
            border-top: 1px solid #dfdfdf;
            padding-left: 10px;
            background-color: #e6e6fa;
        }
		  .black_overlay{
			display:none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 125%;
			background-color: black;
			z-index:1001;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=80);
		}
		.white_content {
			display:none;
			position: absolute;
			top: 25%;
			left: 25%;
			width: 250px;
			height: 150px;
			padding: 16px;
			border: 8px solid #930051;
			background-color: white;
			z-index:1002;
			overflow: auto; 
            font-size:large; 
            text-align:center; 
            vertical-align:middle;  
            FONT-FAMILY: Arial, Helvetica, sans-serif; 
            FONT-SIZE: 12px; 
            FONT-WEIGHT: bold;
            border-radius:25px; 

            
            
            
		}
         .text-alan { 
            padding-top:8px; 
            width:250px; 
            height:26px;
            

        }
		  </style>
       <script type = "text/javascript">
           function Confirm2(textbox_id) {
               var confirm_value = document.createElement("INPUT");
               confirm_value.type = "hidden";
               confirm_value.name = "confirm_value";
               document.forms["form1"].submit();
               var textbox = document.getElementById(textbox_id);
               var textlength = textbox.value.length;
               if (textlength == 11) {
                   if (confirm("Devam Etmeniz Halinde Yeni Bir Müşteri Yaratılacaktır?")) {
                       confirm_value.value = "Yes";
                       deneme2()
                   } else {
                       confirm_value.value = "No";

                   }
               }
               else {
                   alert("Tc Kimlik No Alanı Yanlış veya Eksik Bilgi İçeriyor!");
               }



               document.forms[0].appendChild(confirm_value);

           }

           function Confirm() { 
                   deneme2()
              
           }

           function Confirm3() {
               var confirm_value = document.createElement("INPUT");
               confirm_value.type = "hidden";
               confirm_value.name = "confirm_value";
               document.forms["form1"].submit();

               if (confirm("Devam Etmeniz Halinde Bir Sonraki Adımda Mevcut Müşteriye Yeni Kontrat Yaratılacak?")) {
                   confirm_value.value = "Yes";
                   deneme2()
               } else {
                   confirm_value.value = "No";

               }
               document.forms[0].appendChild(confirm_value);

           }

           function deneme2() {
               setTimeout("uyaricikar()", 1)

           }
           function uyaricikar() {

               if (Page_IsValid == true) {
                   document.getElementById("light").style.display = "block";
                   document.getElementById("fade").style.display = "block";
               }
           }




    </script>


</head>
<body>
    <form id="form1" runat="server">
          <asp:Label ID="ErrorMes" runat="server" ForeColor="Red"></asp:Label>
        <table width="900">
  <tr>
    <td  colspan="3" class="prompt">Müşteri Statü Değişikliği</td>

  </tr>
  <tr>
    <td class="bir">MSISDN
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtMsisdn" Display="Dynamic" ErrorMessage="MSISDN Alanın Girilmesi Zorunludur." Font-Size="Large" SetFocusOnError="True" ValidationGroup="GrpMSISDN" ForeColor="Red">(*)</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtMsisdn" ErrorMessage="Format:5051234567" ValidationExpression="^[0-9]+$" Font-Size="Large" ValidationGroup="GrpMSISDN" ForeColor="Red">(*)</asp:RegularExpressionValidator>
      </td>
    <td class="iki">
          
                            <asp:TextBox ID="TxtMsisdn" runat="server" MaxLength="10" onkeydown = "return (event.keyCode!=13)" Width="385px" CssClass="text-alan" ></asp:TextBox>
       
                        </td>
    <td class="iki">    
                            <asp:Button ID="SMSISDN" runat="server" CssClass="button02" Text="Doğrula" ValidationGroup="GrpMSISDN" />
                            </td>
  </tr>
  <tr>
    <td class="bir">Custcode<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxtCustcode" ErrorMessage="CustCode Alanın Girilmesi Zorunludur." Font-Size="Large" ValidationGroup="GrpCustCode" ForeColor="Red">(*)</asp:RequiredFieldValidator>
      </td>
    <td class="iki">
                            <asp:TextBox ID="TxtCustcode" runat="server" onkeydown = "return (event.keyCode!=13)" Width="385px" CssClass="text-alan"></asp:TextBox>
       
                        </td>
    <td class="iki">    
                            <asp:Button ID="SCustCode" runat="server" CssClass="button02" Text="Doğrula" ValidationGroup="GrpCustCode" />
                            </td>
  </tr>
  </table>
             <table width="900" id="confirmTable" runat="server" visible="false">
  <tr>
    <td colspan="4" class="prompt">Müşteri Bilgileri</td>
  </tr>
  <tr>
    <td class="auto-style1">Müşteri</td>
    <td class="auto-style2" colspan="3">    
                            <asp:Label ID="LblCustomer" runat="server"></asp:Label>
      </td>
  
  </tr>
  <tr>
    <td class="auto-style5">CustCode/MSISDN</td>
    <td class="iki" colspan="4">    
                            <asp:Label ID="LblCustcodeMSısdn" runat="server"></asp:Label>
      </td>
   
  </tr>
  <tr>
    <td class="auto-style3">Mevcut Statü</td>
    <td class="auto-style4" colspan="4">    
                            
                         <asp:Label ID="LblStatus" runat="server"></asp:Label>
                            
                         &nbsp;
                         <asp:Label ID="LblCsid" runat="server" Visible="False"></asp:Label>
                            
                         </td>
    
  </tr>

  <tr>
    <td colspan="4" class="bir">    &nbsp;</td>
  </tr>
                   <tr>
    <td class="auto-style5">Yeni Statü</td>
    <td class="iki" colspan="4">    
                          
                         <asp:DropDownList ID="DrpNewStatus" runat="server" Height="30px" Width="270px">
                             <asp:ListItem>Deactive</asp:ListItem>
                         </asp:DropDownList>
                          
                         </td>
    
  </tr>
                   <tr>
    <td class="auto-style5">Yeni Statü Değişiklik Nedeni</td>
    <td class="iki" colspan="4">    
                          
                         <asp:DropDownList ID="DrpNewStatusReason" runat="server" Height="30px" Width="270px">
                         </asp:DropDownList>
                          
                         </td>
    
  </tr>
                   <tr>
    <td colspan="4" class="bir">    
                            <asp:Button ID="SCustCode0" runat="server" CssClass="button02" Text="Değiştir" OnClientClick="Confirm()" style="" />
                            </td>
  </tr>
</table>
                <table width="900" id="grid" runat="server" visible="false">
  <tr>
    <td>
                &nbsp;</td>
  </tr>
</table>
   
                  
        <div id="light" runat="server"  class="white_content"> <img src="../gif/gif-load.gif" /><br /><br />İŞLEMİNİZ YAPILIYOR LÜTFEN BEKLEYİNİZ</div>
		<div id="fade" runat="server" class="black_overlay"></div>

            
       



      
            
           
          <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="GrpMSISDN" />
          <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="GrpCustCode" />

            
       



      
            
           
    </form>
</body>
</html>
